home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Tools / TASM V5 / ALIASWIN.PAK / MAKEFILE < prev    next >
Encoding:
Text File  |  1996-02-21  |  1.1 KB  |  44 lines

  1. #  Makefile for the aliaswin example.
  2. #
  3. #  Copyright (c) 1996 by Borland International, Inc.
  4. #
  5. #  Usage:   make -B -DWIN16         # 16 bit alias example
  6. #           make -B -DWIN16 -DDEBUG # 16 bit alias example with debug info
  7. #           make -B                 # 32 bit alias example
  8. #           make -B         -DDEBUG # 32 bit alias example with debug info
  9. #
  10.  
  11. !if $d(WIN16)
  12. BCC=bcc
  13. TASM=tasm
  14. !else
  15. BCC=bcc32
  16. TASM=tasm32
  17. !endif
  18.  
  19. !if $d(DEBUG)
  20. BCCDEBUG=-v
  21. ASMDEBUG=/zi
  22. !else
  23. BCCDEBUG=
  24. ASMDEBUG=
  25. !endif
  26.  
  27. !if $d(MAKEDIR)
  28. THEINCLUDE=-I$(MAKEDIR)\..\include -L$(MAKEDIR)\..\lib
  29. !else
  30. THEINCLUDE=
  31. !endif
  32.  
  33. alias1: library.lib
  34.         $(BCC) -W $(BCCDEBUG) $(THEINCLUDE) olduser.c   library.lib
  35.         $(BCC) -W $(BCCDEBUG) $(THEINCLUDE) newuser.c   library.lib
  36.         $(BCC) -W $(BCCDEBUG) $(THEINCLUDE) cppuser.cpp library.lib
  37.  
  38. library.lib: library.c alias.asm
  39.         $(BCC) -c -W $(BCCDEBUG) $(THEINCLUDE) library.c
  40.         $(TASM) $(ASMDEBUG) alias.asm
  41.         if exist library.lib del library.lib
  42.         tlib library.lib +library +alias
  43.  
  44.